<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
        //ES6 引入新的声明字符串的方式
        //1.声明
        let str1="字符串";
        console.log(str1,typeof str1);

        //2.内容中可以直接出现换行符
        let str2=`<ul>
                  <li>字符串1</li>
                  <li>字符串2</li>
                  <li>字符串3</li>
                  </ul>`;
        console.log(str2);

        //3.变量拼接
        let a="123";
        let b=`${a}是是字符串变量`;
        console.log(b);
    </script>
</head>
<body>
    
</body>
</html>